export default {
  props: {
    level: {
      type: Number,
      required: true
    }
  },
  render: function(h) {
    console.log(this.$slots.default);
    return h(
      "h" + this.level,  //标签名称
      this.$slots.default  // 包含子节点的数组
    )
  }
}